home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gst-python / 0.10 / defs / video.defs < prev   
Encoding:
Text File  |  2009-02-21  |  5.2 KB  |  256 lines

  1. ;; -*- scheme -*-
  2. ; object definitions ...
  3. (define-object VideoFilter
  4.   (in-module "Gst")
  5.   (parent "GstBaseTransform")
  6.   (c-name "GstVideoFilter")
  7.   (gtype-id "GST_TYPE_VIDEO_FILTER")
  8. )
  9.  
  10. (define-object VideoSink
  11.   (in-module "Gst")
  12.   (parent "GstBaseSink")
  13.   (c-name "GstVideoSink")
  14.   (gtype-id "GST_TYPE_VIDEO_SINK")
  15. )
  16.  
  17. ;; Enumerations and flags ...
  18.  
  19. (define-enum VideoFormat
  20.   (in-module "Gst")
  21.   (c-name "GstVideoFormat")
  22.   (gtype-id "GST_TYPE_VIDEO_FORMAT")
  23.   (values
  24.     '("unknown" "GST_VIDEO_FORMAT_UNKNOWN")
  25.     '("i420" "GST_VIDEO_FORMAT_I420")
  26.     '("yv12" "GST_VIDEO_FORMAT_YV12")
  27.     '("yuy2" "GST_VIDEO_FORMAT_YUY2")
  28.     '("uyvy" "GST_VIDEO_FORMAT_UYVY")
  29.     '("ayuv" "GST_VIDEO_FORMAT_AYUV")
  30.     '("rgbx" "GST_VIDEO_FORMAT_RGBx")
  31.     '("bgrx" "GST_VIDEO_FORMAT_BGRx")
  32.     '("xrgb" "GST_VIDEO_FORMAT_xRGB")
  33.     '("xbgr" "GST_VIDEO_FORMAT_xBGR")
  34.     '("rgba" "GST_VIDEO_FORMAT_RGBA")
  35.     '("bgra" "GST_VIDEO_FORMAT_BGRA")
  36.     '("argb" "GST_VIDEO_FORMAT_ARGB")
  37.     '("abgr" "GST_VIDEO_FORMAT_ABGR")
  38.     '("rgb" "GST_VIDEO_FORMAT_RGB")
  39.     '("bgr" "GST_VIDEO_FORMAT_BGR")
  40.     '("y41b" "GST_VIDEO_FORMAT_Y41B")
  41.     '("y42b" "GST_VIDEO_FORMAT_Y42B")
  42.   )
  43. )
  44.  
  45.  
  46. ;; From gstvideofilter.h
  47.  
  48. (define-function gst_video_filter_get_type
  49.   (c-name "gst_video_filter_get_type")
  50.   (return-type "GType")
  51. )
  52.  
  53.  
  54.  
  55. ;; From gstvideosink.h
  56.  
  57. (define-function gst_video_sink_get_type
  58.   (c-name "gst_video_sink_get_type")
  59.   (return-type "GType")
  60. )
  61.  
  62. (define-function video_sink_center_rect
  63.   (c-name "gst_video_sink_center_rect")
  64.   (return-type "none")
  65.   (parameters
  66.     '("GstVideoRectangle" "src")
  67.     '("GstVideoRectangle" "dst")
  68.     '("GstVideoRectangle*" "result")
  69.     '("gboolean" "scaling")
  70.   )
  71. )
  72.  
  73.  
  74.  
  75. ;; From video.h
  76.  
  77. (define-function get_size
  78.   (c-name "gst_video_get_size")
  79.   (return-type "gboolean")
  80.   (parameters
  81.     '("GstPad*" "pad")
  82.     '("gint*" "width")
  83.     '("gint*" "height")
  84.   )
  85. )
  86.  
  87. (define-function calculate_display_ratio
  88.   (c-name "gst_video_calculate_display_ratio")
  89.   (return-type "gboolean")
  90.   (parameters
  91.     '("guint*" "dar_n")
  92.     '("guint*" "dar_d")
  93.     '("guint" "video_width")
  94.     '("guint" "video_height")
  95.     '("guint" "video_par_n")
  96.     '("guint" "video_par_d")
  97.     '("guint" "display_par_n")
  98.     '("guint" "display_par_d")
  99.   )
  100. )
  101.  
  102. (define-function format_parse_caps
  103.   (c-name "gst_video_format_parse_caps")
  104.   (return-type "gboolean")
  105.   (parameters
  106.     '("GstCaps*" "caps")
  107.     '("GstVideoFormat*" "format")
  108.     '("int*" "width")
  109.     '("int*" "height")
  110.   )
  111. )
  112.  
  113. (define-function parse_caps_framerate
  114.   (c-name "gst_video_parse_caps_framerate")
  115.   (return-type "gboolean")
  116.   (parameters
  117.     '("GstCaps*" "caps")
  118.     '("int*" "fps_n")
  119.     '("int*" "fps_d")
  120.   )
  121. )
  122.  
  123. (define-function parse_caps_pixel_aspect_ratio
  124.   (c-name "gst_video_parse_caps_pixel_aspect_ratio")
  125.   (return-type "gboolean")
  126.   (parameters
  127.     '("GstCaps*" "caps")
  128.     '("int*" "par_n")
  129.     '("int*" "par_d")
  130.   )
  131. )
  132.  
  133. (define-method new_caps
  134.   (of-object "GstVideoFormat")
  135.   (c-name "gst_video_format_new_caps")
  136.   (return-type "GstCaps*")
  137.   (parameters
  138.     '("int" "width")
  139.     '("int" "height")
  140.     '("int" "framerate_n")
  141.     '("int" "framerate_d")
  142.     '("int" "par_n")
  143.     '("int" "par_d")
  144.   )
  145. )
  146.  
  147. (define-function format_from_fourcc
  148.   (c-name "gst_video_format_from_fourcc")
  149.   (return-type "GstVideoFormat")
  150.   (parameters
  151.     '("guint32" "fourcc")
  152.   )
  153. )
  154.  
  155. (define-method to_fourcc
  156.   (of-object "GstVideoFormat")
  157.   (c-name "gst_video_format_to_fourcc")
  158.   (return-type "guint32")
  159. )
  160.  
  161. (define-method is_rgb
  162.   (of-object "GstVideoFormat")
  163.   (c-name "gst_video_format_is_rgb")
  164.   (return-type "gboolean")
  165. )
  166.  
  167. (define-method is_yuv
  168.   (of-object "GstVideoFormat")
  169.   (c-name "gst_video_format_is_yuv")
  170.   (return-type "gboolean")
  171. )
  172.  
  173. (define-method has_alpha
  174.   (of-object "GstVideoFormat")
  175.   (c-name "gst_video_format_has_alpha")
  176.   (return-type "gboolean")
  177. )
  178.  
  179. (define-method get_row_stride
  180.   (of-object "GstVideoFormat")
  181.   (c-name "gst_video_format_get_row_stride")
  182.   (return-type "int")
  183.   (parameters
  184.     '("int" "component")
  185.     '("int" "width")
  186.   )
  187. )
  188.  
  189. (define-method get_pixel_stride
  190.   (of-object "GstVideoFormat")
  191.   (c-name "gst_video_format_get_pixel_stride")
  192.   (return-type "int")
  193.   (parameters
  194.     '("int" "component")
  195.   )
  196. )
  197.  
  198. (define-method get_component_width
  199.   (of-object "GstVideoFormat")
  200.   (c-name "gst_video_format_get_component_width")
  201.   (return-type "int")
  202.   (parameters
  203.     '("int" "component")
  204.     '("int" "width")
  205.   )
  206. )
  207.  
  208. (define-method get_component_height
  209.   (of-object "GstVideoFormat")
  210.   (c-name "gst_video_format_get_component_height")
  211.   (return-type "int")
  212.   (parameters
  213.     '("int" "component")
  214.     '("int" "height")
  215.   )
  216. )
  217.  
  218. (define-method get_component_offset
  219.   (of-object "GstVideoFormat")
  220.   (c-name "gst_video_format_get_component_offset")
  221.   (return-type "int")
  222.   (parameters
  223.     '("int" "component")
  224.     '("int" "width")
  225.     '("int" "height")
  226.   )
  227. )
  228.  
  229. (define-method get_size
  230.   (of-object "GstVideoFormat")
  231.   (c-name "gst_video_format_get_size")
  232.   (return-type "int")
  233.   (parameters
  234.     '("int" "width")
  235.     '("int" "height")
  236.   )
  237. )
  238.  
  239. (define-method convert
  240.   (of-object "GstVideoFormat")
  241.   (c-name "gst_video_format_convert")
  242.   (return-type "gboolean")
  243.   (parameters
  244.     '("int" "width")
  245.     '("int" "height")
  246.     '("int" "fps_n")
  247.     '("int" "fps_d")
  248.     '("GstFormat" "src_format")
  249.     '("gint64" "src_value")
  250.     '("GstFormat" "dest_format")
  251.     '("gint64*" "dest_value")
  252.   )
  253. )
  254.  
  255.  
  256.